﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Module12._1
{
    class CustomersList
    {
        public List<Customers> ctmArrray = new List<Customers>();
        public void Accept(int n)
        {
            for (int i = 0; i < n; i++)
            {
                Customers ctm = new Customers();

                ctm.Accept();
                ctmArrray.Add(ctm);
            }
        }
        public void Calcu()
        {
            foreach (var item in ctmArrray)
            {

                Interest inter = new Interest(item.CompoundInterest);
                inter += item.RealInterest;
                inter += item.SimpleInterest;
                Console.WriteLine("\n----------------------------------------------------- \nCustomer id: " + item.CustomerID);
                inter();
            }
        }

    }
}
